/**
 * 未成交数据审核
 * - 使用自定义封装组件，简化代码，统一管理。
 * - Edit仅有编辑，待开发
 * - 2025-08-26 16:53:10 tzj
 * */

import BaseComponent from "../../components/BaseComponent";
import {mrhzApi} from "../../services/basic";
import Dictionary from "../../services/dictionary";
import "./style.css"

// 显示的按钮
const buttons = ["query", "export"];
// 表格列信息
const columns = Dictionary.dealColumns.filter((item) => {
    return !["cjje", "sgxm"].includes(item.dataIndex)
});

class pageCheckList extends BaseComponent {
    constructor(props) {
        super(props);
        // const that = this;
        // 公司名称，来源账号，销售/客服，导购, 成交日期，进店日期，审核状态，
        // 要显示的form表单
        const formItemList = [
            "companies",
            {
                name: "accounts",
                label: "来源账号"
            },
            "serviceWx",
            {
                name: "person",
                label: "导购",
                keyword: "dg"
            },
            {
                name: "chooseDateRange",
                label: '到店/成交日期'
            },
            // {
            //     name: "dateRange",
            //     label: '留资日期',
            //     start: "ddqsrq",
            //     end: "ddzzrq"
            // },
            "check"
        ];

        this.state = {
            ...this.state,
            formItemList,
            buttons,
            // columns: columns2,
            filename: "未成交情况统计",
            // tableTitle: true,
            params: {
                ztbz: "99"
            },
        }
        this.defaultPageSize = 7;
        this.columns = columns;
        this.queryApi = mrhzApi.selectPagecj;
        // this.deleteApi = lzApi.delete;
        // this.EditItem = EditItem;
    }
}

export default pageCheckList;